import request from "@/util/request";//记得引入进来
const baseUrl='category/'
//
export function getCategoryByParent(parentId) {
    return request({
        method: 'get',
        url: baseUrl+`get/list/by/parent/${parentId}`,
    })
}
/*通过父id找出所有子分类，以*/
export function getTreCategoryByParent(parentId) {
    return request({
        method: 'get',
        url: baseUrl+`get/tree/list/by/parent/${parentId}`,
    })
}
